class MySingleton:
    __obj = None
    __init_falg = True

    def __new__(cls,*args,**kwargs):
        if cls.__obj == None:
            cls.__obj = object.__new__(cls)
        return cls.__obj

    def __init__(self,name):
        if MySingleton.__init_falg:
            print("init...")
            self.name = name
            MySingleton.__init_falg = False

a = MySingleton("aa")
print(a)
b = MySingleton("bb")
print(b)